export default {
  title: "采购",
  moduleName: "purchase",
  order: 4,
  menuList: [
    {
      path: "settings",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "采购设置",
        icon: "user"
      },
      children: [
        {
          path: "account",
          meta: {
            title: "采购账号管理",
          },
        },
        {
          path: "company",
          meta: {
            title: "采购公司主体管理",
          },
        },
        {
          path: "audit",
          meta: {
            title: "单据审核规则配置",
          },
        },
        {
          path: "logistics",
          meta: {
            title: "物流商管理",
          },
        },
        {
          path: "email",
          meta: {
            title: "邮箱配置",
          },
        },
        {
          path: "contract",
          meta: {
            title: "合同模板",
          },
        },
        {
          path: "reason",
          meta: {
            title: "原因配置",
          },
        },
        {
          path: "department",
          meta: {
            title: "下单时效配置",
          },
        },
        {
          path: "field",
          meta: {
            title: "字段权限配置",
          },
        },
      ]
    },
    {
      path: "supplier",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "供应商管理",
        icon: "user"
      },
      children: [
        {
          path: "bank",
          meta: {
            title: "供应商银行管理",
          },
        },
        {
          path: "data",
          meta: {
            title: "供应商资料管理",
          },
        },
        {
          path: "period",
          meta: {
            title: "供应商账期配置",
          },
        },
        {
          path: "statistic",
          meta: {
            title: "供应商统计报表",
          },
        },
        {
          path: "return",
          meta: {
            title: "供应商退货",
          },
        },
      ]
    },
    {
      path: "product",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "产品管理",
        icon: "user"
      },
      children: [
        {
          path: "purchase",
          meta: {
            title: "产品特采审核",
          },
        },
        {
          path: "product",
          meta: {
            title: "产品管理",
          },
        },
        {
          path: "period",
          meta: {
            title: "供应商账期配置",
          },
        },
        {
          path: "return",
          meta: {
            title: "供应商退货",
          },
        },
      ]
    },
    {
      path: "demand",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "计划需求及发货",
        icon: "user"
      },
      children: [
        {
          path: "sale",
          meta: {
            title: "多平台销售预测",
          },
        },
        {
          path: "promotion",
          meta: {
            title: "活动备货",
          },
        },
        {
          path: "intelligent",
          meta: {
            title: "多平台备货分析",
          },
        },
        {
          path: "intelligent-sale",
          meta: {
            title: "多平台备货分析(销售)",
          },
        },
        {
          path: "demand",
          meta: {
            title: "备库需求单",
          },
        },
        {
          path: "plan",
          meta: {
            title: "备料计划",
          },
        },
        {
          path: "sku",
          meta: {
            title: "备库需求单跟踪",
          },
        },
        {
          path: "change",
          meta: {
            title: "备货需求变更单",
          },
        },
        {
          path: "deliver",
          meta: {
            title: "发货计划",
          },
        },
        {
          path: "basic",
          meta: {
            title: "计划基础设置",
          },
          children: [
            {
              path: "config",
              meta: {
                title: "部门备货金额配置",
              },
            },
            {
              path: "country",
              meta: {
                title: "国家主仓设置",
              },
            },
            {
              path: "rule",
              meta: {
                title: "备货参数设置",
              },
            },
          ]
        },
        {
          path: "new-product",
          meta: {
            title: "开发新品需求",
          },
        },
        {
          path: "deliver-plan",
          meta: {
            title: "计划任务统计",
          },
        },
      ]
    },
    {
      path: "manage",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "采购管理",
        icon: "user"
      },
      children: [
        {
          path: "plan",
          meta: {
            title: "资金计划",
          },
        },
        {
          path: "estimate",
          meta: {
            title: "采购应付与预估",
          },
        },
        {
          path: "order",
          meta: {
            title: "部门备用金额配置",
          },
        },
        {
          path: "statistic",
          meta: {
            title: "采购任务统计",
          },
        },
        {
          path: "process",
          meta: {
            title: "生成采购单",
          },
          children: [
            { path: '1688/:id', hidden: true, props: true,  meta: { activeMenu: '/purchase/manage/process' } },
            { path: 'edit/:id', hidden: true, props: true, meta: { activeMenu: '/purchase/manage/process' } },
            { path: 'view/:id', hidden: true, props: true, meta: { activeMenu: '/purchase/manage/process' } },
            { path: 'create/:id', hidden: true, props: true,  meta: { activeMenu: '/purchase/manage/process' } },
          ]
        },
        {
          path: "audit",
          meta: {
            title: "审核采购单",
          },
        },
        {
          path: "sale",
          meta: {
            title: "验货报告",
          },
        },
        {
          path: "warehouse",
          meta: {
            title: "入仓单跟踪",
          },
        },
        {
          path: "purchase",
          meta: {
            title: "采购单管理",
          },
        },
        {
          path: "purchase-sku",
          meta: {
            title: "采购单跟踪",
          },
        },
        {
          path: "external",
          meta: {
            title: "外验需求计划",
          },
        },
        {
          path: "qa-external",
          meta: {
            title: "QA外验排期表",
          },
        },
        {
          path: "abnormal",
          meta: {
            title: "异常单管理",
          },
        },
        {
          path: "return",
          meta: {
            title: "退货单管理",
          },
        },
        {
          path: "damage",
          meta: {
            title: "报损单管理",
          },
        },
        {
          path: "adjust",
          meta: {
            title: "调整单管理",
          },
        },
        {
          path: "supplier",
          meta: {
            title: "供应商对账",
          },
        },
        {
          path: "bill",
          meta: {
            title: "对账单",
          },
        },
        {
          path: "contract",
          meta: {
            title: "采购合同管理",
          },
        },
        {
          path: "inbound",
          meta: {
            title: "采购入库明细",
          },
        },
      ]
    },
    {
      path: "finance",
      component: 'Layout',
      alwaysShow: true,
      redirect: 'noRedirect',
      meta: {
        title: "财务管理",
        icon: "user"
      },
      children: [
        {
          path: "statistic",
          meta: {
            title: "财务统计",
          },
        },
        {
          path: "payment",
          meta: {
            title: "付款申请管理",
          },
        },
        {
          path: "alipay",
          meta: {
            title: "支付宝账号",
          },
        },
        {
          path: "refund",
          meta: {
            title: "退款管理",
          },
        },
        {
          path: "abnormal",
          meta: {
            title: "异常冲账管理",
          },
        },
        {
          path: "strike",
          meta: {
            title: "财务冲账",
          },
        },
        {
          path: "verification",
          component: 'Layout',
          alwaysShow: true,
          redirect: 'noRedirect',
          meta: {
            title: "采购核销开票管理",
          },
          children: [
            {
              path: "inbound",
              meta: {
                title: "采购入库明细表",
              },
            },
            {
              path: "billing",
              meta: {
                title: "发票管理-开票清单",
              },
            },
            {
              path: "invoice",
              meta: {
                title: "发票管理-发票清单",
              },
            },
            {
              path: "file",
              meta: {
                title: "发票文件管理",
              },
            },
          ]
        },
        {
          path: "detail",
          meta: {
            title: "付款/退款明细表",
          },
        },
        {
          path: "payable",
          meta: {
            title: "应付余额汇总表",
          },
        },
      ]
    }
  ]
}